//
//  AppDelegate.swift
//  Swift-sina
//
//  Created by gaoyanyun on 16/5/10.
//  Copyright © 2016年 mac. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        setupAppearance()
       
        window = UIWindow (frame: UIScreen.mainScreen().bounds)
        window?.backgroundColor=UIColor.whiteColor()
        
        window?.rootViewController=GYMainViewController()
        
        window?.makeKeyAndVisible()
        return true
    }

}
    //设置外观应用程序
extension AppDelegate{
    //设置全局属性
    private func setupAppearance(){
            
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
    
        }
    }
    


